#include <stdio.h>
#include <stdarg.h>

void printlnf(char* format, ...)
{
    va_list args;
    va_start(args, format);
    vprintf(format, args);
    printf("\n");
    va_end(args);
}

int main()
{
    int input_num = 0;
    printf("请输入数字（0-12）：");
    scanf("%d", &input_num);
    printlnf("你刚刚输入的数字是：%d", input_num);
    switch(input_num) {
        case 1:
        case 2:
        case 3: printlnf("春"); break;
        case 4:
        case 5:
        case 6: printlnf("夏"); break;
        case 7:
        case 8:
        case 9: printlnf("秋"); break;
        case 10:
        case 11:
        case 12: printlnf("冬"); break;
        default: printlnf("输入的数字有误");
    }
    return 0;
}